package com.aliwo.controller;

import com.aliwo.response.ResultResponse;
import com.aliwo.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author xuyayuan
 * @data 2021年06月24日
 */
@RestController
@RequestMapping("/api/banner/v1")
public class BannerController {
    @Autowired
    private BannerService bannerService;

    @RequestMapping(value = "/bannerDetail")
    public ResultResponse bannerDetail() {
        return bannerService.list();
    }
}
